package com.aloda.context;


import com.aloda.dto.user.UserSafetyDTO;

public class UserBaseContext {
    private static final ThreadLocal<UserSafetyDTO> tl = new ThreadLocal<>();

    public static void saveUser(UserSafetyDTO userDTO){
        tl.set(userDTO);
    }

    public static UserSafetyDTO getUser(){
        return tl.get();
    }

    public static void removeUser(){
        tl.remove();
    }
}
